<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<div>
<label><input type="checkbox" name="cl_categories" value="${category.id}"></input>
<a href="${scriptPath}?action=category.edit&ce_id=${category.id}">${category.name}</a>
</label>
</div>

<!-- recursive display items -->
<c:set var="curr" value="${category}" scope="page"></c:set>
<c:forEach items="${curr.children}" var="child">
	<div style="margin-left:30px">
		<c:set var="category" value="${child}" scope="request"></c:set>
		<jsp:include page="category.list-item.jsp"/>
	</div>
</c:forEach>
